// pages/list/list.js
var queryText = "";
Page({
  data: {
    bh_lite: [{
 
        lite_img: "/3.jpg",
        lite_name: "养老院",
        lite_int: "养老院介绍"
      },
      {
 
        lite_img: "/2.jpg",
        lite_name: "养老院1",
        lite_int: "养老院介绍1"
      },
      {
        lite_img: "/2.jpg",
        lite_name: "养老院1",
        lite_int: "养老院介绍1"
      },
      {
        lite_img: "/2.jpg",
        lite_name: "养老院1",
        lite_int: "养老院介绍1"
      },
      {
        lite_img: "/2.jpg",
        lite_name: "养老院1",
        lite_int: "养老院介绍1"
      },
      {
        lite_img: "/2.jpg",
        lite_name: "养老院1",
        lite_int: "养老院介绍1"
      },
      {
        lite_img: "/2.jpg",
        lite_name: "养老院1",
        lite_int: "养老院介绍1"
      },
      {
        lite_img: "/2.jpg",
        lite_name: "养老院1",
        lite_int: "养老院介绍1"
      },
      {
        lite_img: "/2.jpg",
        lite_name: "养老院1",
        lite_int: "养老院介绍1"
      }
    ]

  },
  //搜索功能
  q_button() {
    // for(){}
    queryText = "";
  },
  q_input(getText) {
    queryText = getText;

  },
  // 跳转详情页
  bh_lite_tap(bh_int) {
    bh_int=bh_int.currentTarget.dataset.bh_int;
    console.log(bh_int);
    wx.navigateTo({
      url: '../list_details/list_details?name=' + bh_int.lite_name+'&img='+bh_int.lite_img,
    
    })

  }
})